<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleanf.org">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
<form action="/usian/regist" method="post" >
    用户名：<input type="text" name="userName"><br>
    密码：<input type="text" name="password" id="pwd"><br>
    确认密码：<input type="text" name="repassword" id="repwd"><span th:text="${err}"></span><br>
    <input type="submit" value="注册">

</form>
</body>
<!--<script type="application/javascript">
    var flag = false;
    function jiaoyan(){
        var pwd = document.getElementById("pwd").value;
        var repwd = document.getElementById("repwd").value;
        if(pwd==repwd){
            flag = true;
        }else{
            alert("密码不一致")
           flag = false;
        }
    }
</script>-->
</html>